import request from '@/utils/request'

// 查询会员相册列表
export function listAlbum(query) {
  return request({
    url: '/message/album/list',
    method: 'get',
    params: query
  })
}

// 查询会员相册详细
export function getAlbum(id) {
  return request({
    url: '/message/album/' + id,
    method: 'get'
  })
}

// 新增会员相册
export function addAlbum(data) {
  return request({
    url: '/message/album',
    method: 'post',
    data: data
  })
}

// 修改会员相册
export function updateAlbum(data) {
  return request({
    url: '/message/album',
    method: 'put',
    data: data
  })
}

// 删除会员相册
export function delAlbum(id) {
  return request({
    url: '/message/album/' + id,
    method: 'delete'
  })
}

// 删除单张图片
export function delImage(data,val) {
  const params={data,val}
  return request({
    url: '/message/album/delImage',
    method: 'delete',
    data:params
  })
}
